package com.wardrobe.smartWardrobe.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author tky
 * @since 2024-03-24
 */
public class Cloth implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private Integer shopId;

    private String name;

    private String brand;

    private String type;

    private Float price;

    /**
     * 是否需要预约
     */
    private String needBook;

    private LocalDateTime bookTime;

    private String displayMno;

    private Integer totalNumber;

    private Integer warnNumber;

    /**
     * 是否优先
     */
    private String isPri;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getNeedBook() {
        return needBook;
    }

    public void setNeedBook(String needBook) {
        this.needBook = needBook;
    }

    public LocalDateTime getBookTime() {
        return bookTime;
    }

    public void setBookTime(LocalDateTime bookTime) {
        this.bookTime = bookTime;
    }

    public String getDisplayMno() {
        return displayMno;
    }

    public void setDisplayMno(String displayMno) {
        this.displayMno = displayMno;
    }

    public Integer getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }

    public Integer getWarnNumber() {
        return warnNumber;
    }

    public void setWarnNumber(Integer warnNumber) {
        this.warnNumber = warnNumber;
    }

    public String getIsPri() {
        return isPri;
    }

    public void setIsPri(String isPri) {
        this.isPri = isPri;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Cloth{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", name=" + name +
        ", brand=" + brand +
        ", type=" + type +
        ", price=" + price +
        ", needBook=" + needBook +
        ", bookTime=" + bookTime +
        ", displayMno=" + displayMno +
        ", totalNumber=" + totalNumber +
        ", warnNumber=" + warnNumber +
        ", isPri=" + isPri +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
